const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/,'')
      }
    }
  },
   css: {
    loaderOptions: {
      scss: {
        // 方式一：添加全局 SCSS 引入（推荐）
        additionalData: `@import "@/styles/variables.scss";`
      }
    }
  }
})
